<?php 
//var_dump(); die();
$this->load->view('admin/head');
$this->load->view('admin/header');
?>
<!-- Content -->
<div class="space30"></div>
<div class="container">
	<div class="row">
		<div class="col-md-2">
			<nav class="navbar1">
				<?php $this->load->view('admin/left_nav'); ?>
			</nav>
		</div>
		<div class="col-md-10">
<!--form starts-->
        	<div class="form_container">
            		<h4>Event Summary Report</h4>
                    <!--row starts-->
                    	<div class="row1">
                        	<div class="form-group col-sm-3" style="float: right;margin: -25px 0 0 0;">
                        	<a href="<?php echo BASE_URL.'/admin/download_report3';?>">
                            	<div class="download_reports">
                                    <img src="<?php echo ASSET_URL.'img/attachment.png';?>" alt="Attachment" style="width:30px; margin-right:5px; margin-top:5px;"> <p>Download Report</p>
                                    <div class="clear"></div>
                                </div>
                            </a>
                        </div>
                        <div class="clearfix"></div>
                        </div>
                    <!--row closed-->
                    <!--row starts-->
                        <div class="row1">
                         <div class="modal-body">
                        <div class="table-responsive">
                          <table border="0" cellspacing="0" cellpadding="0" id="Event_Summary" class="table table-striped">
                          <thead>
                              <tr style="background:#FFFFFF;">
                                <td width="8%"><b>S.No.</b></td>
                                <td width="21%"><b>Event Name</b></td>
                                <td width="25%"><b>Award  Name</b></td>
                                <td width="25%"><b>Chief Panelist</b></td>
                                <td width="24%"><b>Admin Incharge</b></td>
                                <td width="22%"><b>No. of Panelist</b></td>
                                <td width="22%"><b>No. of Applicant</b></td>
                                <td width="22%"><b>Status</b></td>
                                <td width="22%"><b>Created Date &amp; Time</b></td>
                              </tr>
                            </thead>  
                              <?php if(isset($event_report) && $event_report!=NULL){ ?>
                              <tbody>
								<?php   
                               $i=0;foreach($event_report as $row){?>
                              <tr>
                                <td><?php echo $i+1; ?></td>
                                <td><?php if(isset($row->event_name)) {echo $row->event_name; }?></td>
                                <td><?php if(isset($row->award_name)) {echo $row->award_name;} ?></td>
                                <td><?php if(isset($award_incharge[$i][0]->admin_fullname)){ echo $award_incharge[$i][0]->admin_fullname;} ?></td>
                                <td><?php if(isset($award_panelist[$i][0]->admin_fullname)){ echo $award_panelist[$i][0]->admin_fullname; }  ?></td>
                                <td><?php if(isset($total_panelist[$i])) {echo $total_panelist[$i];}?></td>
                                <td><?php if(isset($total_applicant[$i])) {echo $total_applicant[$i]; }?></td>
                                <td><?php if(isset($row->award_current_status)) {echo $row->award_current_status; }?></td>
                                <td><?php if(isset($row->award_created_date)) {echo  $row->award_created_date;}?></td>
                              </tr>
                              <?php $i++; } ?>
                              </tbody>
							 <?php  } ?>
                            </table>
						</div>
         <div class="space30"></div>
              </div>
              </div>
                    <!--row closed-->                   
        </div>
        <!--form closed-->
         <div class="space30"></div>
        
      </div>
       <div class="clearfix"></div>
    </div>    
  </div>    
  
  <div class="space20"></div>  
  
   
  
  <div class="space30"></div>  
  
  <!-- Content End -->
    <?php $this->load->view('common/footer'); ?>  
     <script type="text/javascript">
$(document).ready(function(){
	$("input[type=search]").attr('placeholder', 'Search...');
});
</script>